package com.qf.api.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.qf.api.blog.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 网站主页背景图
 * @TableName t_banners
 */
@TableName(value ="t_banners")
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class BannersEntity extends BaseEntity {
    /**
     * 主键id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 图片路径
     */
    @TableField(value = "path")
    private String path;

    /**
     * 图片大小 (字节)
     */
    @TableField(value = "size")
    private Long size;

    /**
     * 图片类型 (MIME)
     */
    @TableField(value = "type")
    private String type;

    /**
     * 上传人id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 图片顺序
     */
    @TableField(value = "sort_order")
    private Integer sortOrder;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;
}